<script setup>
import {ref} from 'vue'
const username = ref('小王')
const isLogin = ref(true)
const score = ref(60)
</script>
<template>
  <div v-if="isLogin">欢迎您：{{username}}</div>
  <div v-else>欢迎您：游客，请登录！</div>
  <div>------------------------</div>
  <div>你的成绩为：{{score}}</div>
  <div>------------------------</div>
  <div v-if="score > 85">优秀</div>
  <div v-else-if="score >65">良好</div>
  <div v-else-if="score > 59">及格</div>
  <div v-else>不及格</div>
</template>
<style scoped>

</style>